namespace Digitalmes.Application.Sys.Dicts;

/// <summary>
/// 字典 DTO 对象。
/// </summary>
public sealed class SysDictDto : Dto
{
    /// <summary>
    /// 字典名称 
    /// </summary>
    [NotNull]
    public string? Name { get; set; }

    /// <summary>
    /// 字典编号（设定后不能修改）
    /// </summary>
    [NotNull]
    public string? Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Order { get; set; }

    /// <summary>
    /// 启用状态（0->停用，1->启用）
    /// </summary>
    public EnabledStatusEnum Status { get; set; }

    /// <summary>
    /// 字典项集合
    /// </summary>
    public List<SysDictItemDto>? Items { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? UpdatedBy { get; set; }

    public DateTime? UpdatedTime { get; set; }
}
